package com.designpatterns.factory.factory2.pizzaStroe;


import com.designpatterns.factory.factory2.pizza.Pizza;

public abstract class PizzaStroe {
    public Pizza orderPizza(String type){
        Pizza pizza;
        pizza = createPizza(type);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();
        return pizza;
    }

    public abstract Pizza createPizza(String type);
}
